package com.treeHole.treeHoleServer.mapper;


import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CollectMapper {
    int insertCollectRecord(int postId, int userId, String collectDate);
    int deleteCollectRecord(int postId, int userId);

    //获取用户是否对某一条帖子有收藏记录
    List<Integer> getUserIsCollectPost(int postId, int userId);
}
